
function anonymous(data,selfId={}) {
  var out = '<view class="container" id="main"> \
      <view class="rankList"> \
          <scrollview class="list"> ';
  var arr1 = data;
  console.warn("排行榜数据",data,selfId)
  if (arr1) {
    var item, index = -1,
      l1 = arr1.length - 1;
    while (index < l1) {
      item = arr1[index += 1];
      let isSlef = item.nickname==selfId.nickName;
      let img = isSlef?"btn_blue3.png":"btn_greed3.png"
      console.log("img",img,item.nickname,selfId,isSlef)
        out += '<view class="listItem"> ';
        out += ' \
              <view id="listItemUserData"> \
                  <text class="listItemNum" value="' + (index + 1) + '"></text> \
                  <image class="listHeadImg" src="' + (item.avatarUrl) + '"></image> \
                  <view id="listItemNameBox" class="djiTest"> \
                      <text class="listItemName" value="' + (item.nickname) + '"></text> \
                      <text class="listItemScore" value="积分：' + (item.KVDataList[0].value.score) + '"></text> \
                  </view> \
                  <view class ="btnShare" id="'+(item.openid)+'"> \
                  <image  class="btn" id="'+(item.nickname||'isNode')+'" src="openDataContext/render/'+(item.nickname==selfId.nickName?"btn_blue3.png":"btn_greed3.png")+'"> </image> \
                  </view>\
              </view> \
          </view> ';
    }
  }

  out += ' \
          </scrollview> \
      </view> \
  </view>';

  return out;
}
function cnm(openid){
  console.log("分享ID：",openid)
}

module.exports = anonymous